

#include "helloworldActor.h"
#include "renderer.h"
#include "control.h"

HelloworldActor::HelloworldActor(){


    menuType.push_back("15TextInputButton");
    menuProp.push_back("ROTATIONSPEED");

    bTextured   = true;
    bUseShader  = true;
    sceneShaderID   = "texture";
    textureID   = "grid_solid";

    rotationSpeed = 1.f;

    registerProperties();
}

HelloworldActor::~HelloworldActor(){}

void HelloworldActor::registerProperties(){
createMemberID("ROTATIONSPEED",&rotationSpeed,this);
Actor::registerProperties();
}

void HelloworldActor::setup(){

Actor::setup();
}

void HelloworldActor::trigger(Actor * other){}

void HelloworldActor::update(double deltaTime)
{
    if( Control::bRunning ) addRotation( Vector3f( 0, rotationSpeed, 0 ) );
}

void HelloworldActor::create(){renderer->addActor(this);}
